﻿<Window x:Class="LinkViewer.Checker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Checker" Height="396" Width="905"
        DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <StackPanel Orientation="Vertical">

        <DockPanel Background="White" HorizontalAlignment="Left" LastChildFill="True" Name="dockPanel1" VerticalAlignment="Top">
            <StackPanel DockPanel.Dock="Top">
                <StackPanel Orientation="Horizontal">
                    <Button Name="bChooseFolder" Width="220" Margin="10"  Height="28" Click="bChooseFolder_Click">Extract Links From Directory</Button>
                    <Button Name="bCheckLinks" Width="220" Margin="10" Height="28" Click="bCheckLinks_Click" IsEnabled="True">Check Extracted Links</Button>
                </StackPanel>

                <ProgressBar Height="28" Margin="0,10,0,10" Name="progBar"/>
                <GroupBox Header="Status" Margin="5" Padding="4">
                    <StackPanel>
                        <Label x:Name="statusActivity">Activity:</Label>
                    </StackPanel>

                </GroupBox>
            </StackPanel>


            <ListView Name="linksListView" DockPanel.Dock="Bottom" ItemsSource="{Binding LinkCollection}" Height="185">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="Link Title" DisplayMemberBinding="{Binding Title}" Width="300"></GridViewColumn>
                        <GridViewColumn Header="Link URL"  DisplayMemberBinding="{Binding URL}" Width="400"></GridViewColumn>
                        <GridViewColumn Header="Status Code"  DisplayMemberBinding="{Binding Status_Code}" Width="200"></GridViewColumn>
                    </GridView>
                </ListView.View>

            </ListView>
        </DockPanel>
    </StackPanel>

</Window>
